<include file="Public/frame" />
<div class="content-wrap">
    <div class="hd cf place">&nbsp;&nbsp;&nbsp;财务明细</div>
    <style type="text/css">
        table{
            border:1px solid #e9e9e9;
        }

        td{
            text-align: center;
        }
        .place{
           font-size: 16px;
            font-weight: bold;
            border-left: 2px solid #0084FF;
        }
        .amount{
            font-size: 14px;
            font-family: '微软雅黑';
            font-weight: bold;
            margin-bottom: 8px;
        }
    </style>
    <script type="text/javascript">
      $(function(){
        $('#csubmit').click(function(){
            if ($('#chongzhi').val()=="") {
                alert('充值金额不能为空！');
                return false;
            };

        });
      });
    </script>
    
    <div class="amount">
        您的账户当前余额为：<font color="red">{$amount} RMB</font>
        <br/><br/>
        <form action="{:U('User/Alipay/doalipay')}" method="post">
                     <input type="hidden" name="WIDout_trade_no" value="{:build_cz_order_no()}">
                     <input type="hidden" name="WIDsubject" value="会员余额充值">
                     金额：<input type="text" name="WIDtotal_fee" value="" id="chongzhi" class="input-text">
                     <input type="hidden" name="WIDbody" value="网站会员充值">
                     <input type="hidden" name="WIDshow_url" value="{$Think.config.cfg_weburl}{:U('User/Center/amount')}">
                     <input type="hidden" name="ischongzhi" value="1">
                    <input type="submit" value="点击充值" id="csubmit" class="button">
        </form>
        <br/>
    </div>

    <div class="cart">
        <table width="100%" class="table-list">
            <thead>
                <tr>
                    <th width="30%">订单号</th>
                    <th width="10%">金  额</th>
                    <th width="30%">时  间</th>
                    <th width="10%">类  型</th>
                </tr>
            </thead>
            <tbody>
                <foreach name="logs" item="c">
                    <tr>
                        <td>{$c['orderid']}</td>
                        <td>{$c['orderfee']}</td>
                        <td>{$c['creattime']|date='Y-m-d H:i:s',###}</td>
                        <td>{$c['dtype']?'收入':'支出'}</td>
                    </tr>
                </foreach>
            </tbody>
            <tr>
                <td colspan="4">
                    {$page}
                </td>
            </tr>
        </table>
    </div>
    <div class="a5"></div>
</div>

<!--主要内容区-->

<!-- /主体 -->
<!-- 底部 -->
<include file="Public/foot" />